package nl.depository.pim.pages;

import nl.depository.pim.annotations.AnonymousAccess;
import nl.depository.pim.services.Authenticator;

import org.apache.tapestry5.ioc.annotations.Inject;

@AnonymousAccess
public class Index
{
	@Inject
	private Authenticator authenticator;
	
	public Object onActivate()
	{
		return authenticator.isLoggedIn() ? Dashboard.class : Login.class;
	}
}
